/*
 * I2C support for AT91SAM7X
 *
 * by Zik Saleeba 2008-01-22
 */

#ifndef I2C_H
#define I2C_H

/* error codes */
#define I2C_ERROR_OK 0
#define I2C_ERROR_TIMEOUT -1
#define I2C_ERROR_BUSY -2

/* prototypes */
void I2C_Init(void);
int I2C_Transfer(unsigned char Address, const unsigned char *TxBuf, int TxBytes, unsigned char *RxBuf, int RXBytes);
int I2C_Send_Command(unsigned char Address, unsigned char Command);

#endif /* I2C_H */
